<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page errorPage="error/Error.jsp"
	contentType="text/html;charset=UTF-8"
	import="com.mmp.common.util.*,com.mmp.main.util.*,com.mmp.main.entity.*,java.util.*"%>

<%
	String dest = (String) request.getAttribute("formAction");	
        if(dest == null)
           throw new Exception("لم يتم تعيين هدف للبحث");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form name="form1" method="post" action="<%=dest%>" target="_blank">
		<table class="layout_grid">
			<tr>
				<td class="side_label_middle">الشهر :</td>
				<td><%=HtmlUtil.getMonthesAsHtmlSelect("month",	"auto_off")%></td>
			</tr>
			<tr>
				<td class="side_label_middle">السنة :</td>
				<td><select name="year" id="year" class="auto_off"
						<!--class="auto_add_all auto_off"-->>
				</select> <script>
					var currentYear = new Date().getFullYear();
					for (var i = 2014; i <= currentYear + 1; i++)
						$("#year").append(new Option(i, i));
				</script></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="button" id="button" value="عرض"></td>
			</tr>
		</table>
	</form>
</body>
</html>